package com.hrpmar.service;

import com.hrpmar.controller.dto.MessageSenderDto;
import com.hrpmar.pojo.MessageReply;
import com.hrpmar.utils.Pager;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by c on 2017-12-04.
 */
public interface MessageSenderService {

    /**
     * 分页查询站内信息
     * @param offset
     * @param limit
     * @param condition
     * @return
     */
    public Pager search(Integer offset,Integer limit,MessageSenderDto condition, HttpServletRequest req);

    /**
     * 获取回复信息
     * @param mid
     * @return
     */
    public List<MessageReply> searchHuiFu(Integer mid);

    /**
     * 添加回复信息
     * @param messageReply
     */
    public MessageReply addHuiFu(MessageReply messageReply,HttpServletRequest req);

    /**
     * 修改信息为已读
     * @param rid
     */
    public void updateIsReader(Integer rid);

}
